package com.shenzhen.horselive.beans;

import java.util.List;

/**
 * 指定账户的类型变更历史，也就是明细
 */
public class TypeDetailsBean {

    /**
     * errCode : null
     * errMessage : null
     * data : {"content":[{"userId":1,"amount":10,"curAmount":10,"curFreezeAmount":0,"afterAmount":0,"afterFreezeAmount":0,"ratio":1,"accountType":0,"direction":2,"description":null,"orderCode":"1","orderType":"","createTime":"2020-01-01 00:00:00"}],"pageable":{"sort":{"sorted":true,"unsorted":false,"empty":false},"offset":0,"pageNumber":0,"pageSize":20,"paged":true,"unpaged":false},"last":true,"totalPages":1,"totalElements":1,"number":0,"size":20,"first":true,"sort":{"sorted":true,"unsorted":false,"empty":false},"numberOfElements":1,"empty":false}
     * success : true
     */

    private String errCode;
    private String errMessage;
    private DataBean data;
    private boolean success;

    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public String getErrMessage() {
        return errMessage;
    }

    public void setErrMessage(String errMessage) {
        this.errMessage = errMessage;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public static class DataBean {
        /**
         * content : [{"userId":1,"amount":10,"curAmount":10,"curFreezeAmount":0,"afterAmount":0,"afterFreezeAmount":0,"ratio":1,"accountType":0,"direction":2,"description":null,"orderCode":"1","orderType":"","createTime":"2020-01-01 00:00:00"}]
         * pageable : {"sort":{"sorted":true,"unsorted":false,"empty":false},"offset":0,"pageNumber":0,"pageSize":20,"paged":true,"unpaged":false}
         * last : true
         * totalPages : 1
         * totalElements : 1
         * number : 0
         * size : 20
         * first : true
         * sort : {"sorted":true,"unsorted":false,"empty":false}
         * numberOfElements : 1
         * empty : false
         */

//        private PageableBean pageable;
//        private boolean last;
//        private int totalPages;
//        private int totalElements;
//        private int number;
//        private int size;
//        private boolean first;
//        private SortBeanX sort;
//        private int numberOfElements;
//        private boolean empty;
        private List<ContentBean> content;
//
//        public PageableBean getPageable() {
//            return pageable;
//        }
//
//        public void setPageable(PageableBean pageable) {
//            this.pageable = pageable;
//        }

//        public boolean isLast() {
//            return last;
//        }
//
//        public void setLast(boolean last) {
//            this.last = last;
//        }
//
//        public int getTotalPages() {
//            return totalPages;
//        }
//
//        public void setTotalPages(int totalPages) {
//            this.totalPages = totalPages;
//        }
//
//        public int getTotalElements() {
//            return totalElements;
//        }
//
//        public void setTotalElements(int totalElements) {
//            this.totalElements = totalElements;
//        }
//
//        public int getNumber() {
//            return number;
//        }
//
//        public void setNumber(int number) {
//            this.number = number;
//        }
//
//        public int getSize() {
//            return size;
//        }
//
//        public void setSize(int size) {
//            this.size = size;
//        }
//
//        public boolean isFirst() {
//            return first;
//        }
//
//        public void setFirst(boolean first) {
//            this.first = first;
//        }
//
//        public SortBeanX getSort() {
//            return sort;
//        }
//
//        public void setSort(SortBeanX sort) {
//            this.sort = sort;
//        }
//
//        public int getNumberOfElements() {
//            return numberOfElements;
//        }
//
//        public void setNumberOfElements(int numberOfElements) {
//            this.numberOfElements = numberOfElements;
//        }
//
//        public boolean isEmpty() {
//            return empty;
//        }
//
//        public void setEmpty(boolean empty) {
//            this.empty = empty;
//        }

        public List<ContentBean> getContent() {
            return content;
        }

        public void setContent(List<ContentBean> content) {
            this.content = content;
        }

        public static class PageableBean {
            /**
             * sort : {"sorted":true,"unsorted":false,"empty":false}
             * offset : 0
             * pageNumber : 0
             * pageSize : 20
             * paged : true
             * unpaged : false
             */

            private SortBean sort;
            private int offset;
            private int pageNumber;
            private int pageSize;
            private boolean paged;
            private boolean unpaged;

            public SortBean getSort() {
                return sort;
            }

            public void setSort(SortBean sort) {
                this.sort = sort;
            }

            public int getOffset() {
                return offset;
            }

            public void setOffset(int offset) {
                this.offset = offset;
            }

            public int getPageNumber() {
                return pageNumber;
            }

            public void setPageNumber(int pageNumber) {
                this.pageNumber = pageNumber;
            }

            public int getPageSize() {
                return pageSize;
            }

            public void setPageSize(int pageSize) {
                this.pageSize = pageSize;
            }

            public boolean isPaged() {
                return paged;
            }

            public void setPaged(boolean paged) {
                this.paged = paged;
            }

            public boolean isUnpaged() {
                return unpaged;
            }

            public void setUnpaged(boolean unpaged) {
                this.unpaged = unpaged;
            }

            public static class SortBean {
                /**
                 * sorted : true
                 * unsorted : false
                 * empty : false
                 */

                private boolean sorted;
                private boolean unsorted;
                private boolean empty;

                public boolean isSorted() {
                    return sorted;
                }

                public void setSorted(boolean sorted) {
                    this.sorted = sorted;
                }

                public boolean isUnsorted() {
                    return unsorted;
                }

                public void setUnsorted(boolean unsorted) {
                    this.unsorted = unsorted;
                }

                public boolean isEmpty() {
                    return empty;
                }

                public void setEmpty(boolean empty) {
                    this.empty = empty;
                }
            }
        }

        public static class SortBeanX {
            /**
             * sorted : true
             * unsorted : false
             * empty : false
             */

            private boolean sorted;
            private boolean unsorted;
            private boolean empty;

            public boolean isSorted() {
                return sorted;
            }

            public void setSorted(boolean sorted) {
                this.sorted = sorted;
            }

            public boolean isUnsorted() {
                return unsorted;
            }

            public void setUnsorted(boolean unsorted) {
                this.unsorted = unsorted;
            }

            public boolean isEmpty() {
                return empty;
            }

            public void setEmpty(boolean empty) {
                this.empty = empty;
            }
        }

        public static class ContentBean {
            /**
             * userId : 1
             * amount : 10
             * curAmount : 10
             * curFreezeAmount : 0
             * afterAmount : 0
             * afterFreezeAmount : 0
             * ratio : 1
             * accountType : 0
             * direction : 2
             * description : null
             * orderCode : 1
             * orderType :
             * createTime : 2020-01-01 00:00:00
             */

            private String userId;
            private String amount;
            private String curAmount;
            private String curFreezeAmount;
            private String afterAmount;
            private String afterFreezeAmount;
            private String ratio;
            private int accountType;
            private int direction;
            private String description;
            private String orderCode;
            private String orderType;
            private String createTime;

            public String getUserId() {
                return userId;
            }

            public void setUserId(String userId) {
                this.userId = userId;
            }

            public String getAmount() {
                return amount;
            }

            public void setAmount(String amount) {
                this.amount = amount;
            }

            public String getCurAmount() {
                return curAmount;
            }

            public void setCurAmount(String curAmount) {
                this.curAmount = curAmount;
            }

            public String getCurFreezeAmount() {
                return curFreezeAmount;
            }

            public void setCurFreezeAmount(String curFreezeAmount) {
                this.curFreezeAmount = curFreezeAmount;
            }

            public String getAfterAmount() {
                return afterAmount;
            }

            public void setAfterAmount(String afterAmount) {
                this.afterAmount = afterAmount;
            }

            public String getAfterFreezeAmount() {
                return afterFreezeAmount;
            }

            public void setAfterFreezeAmount(String afterFreezeAmount) {
                this.afterFreezeAmount = afterFreezeAmount;
            }

            public String getRatio() {
                return ratio;
            }

            public void setRatio(String ratio) {
                this.ratio = ratio;
            }

            public int getAccountType() {
                return accountType;
            }

            public void setAccountType(int accountType) {
                this.accountType = accountType;
            }

            public int getDirection() {
                return direction;
            }

            public void setDirection(int direction) {
                this.direction = direction;
            }

            public String getDescription() {
                return description;
            }

            public void setDescription(String description) {
                this.description = description;
            }

            public String getOrderCode() {
                return orderCode;
            }

            public void setOrderCode(String orderCode) {
                this.orderCode = orderCode;
            }

            public String getOrderType() {
                return orderType;
            }

            public void setOrderType(String orderType) {
                this.orderType = orderType;
            }

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }
        }
    }
}
